﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.Sockets;

namespace JTActiveSafety.Gateway.Internal
{
    public class TcpChannelEventArgs : EventArgs
    {
        public Socket sock { get; set; }
    }

    public class TcpChannelConnectedEventArgs : EventArgs
    {
        public Socket sock { get; set; }
        public bool ConnectFlag { get;set; }
    }

    public class TcpChannelReceivedEventArgs : EventArgs
    {
        public Socket sock { get; set; }
        public byte[] bytes { get; set; }
    }

    public class TcpChannelErrorEventArgs : EventArgs
    {
        public Socket sock { get; set; }
        public string content { get; set; }
        public Exception ex { get; set; }
    }
}

